package com.dorm.cj.state;

public class Metro {

    MetroState currentState;

    public Metro() {
        currentState = new StopState();
    }

    public Metro(MetroState currentState) {
        this.currentState = currentState;
    }


    public void openDoor() {
        currentState.openDoor();
    }

    public void closeDoor() {
        currentState.closeDoor();
    }

    public void start() {
        currentState.start();
    }

    public void stop() {
        currentState.stop();
    }

}
